import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from 'src/common/entities/base.entity';

@Entity('sys_role', { schema: 'lvlu' })
export class Role extends BaseEntity {
  @PrimaryGeneratedColumn({ type: 'int', name: 'role_id' })
  roleId: number;

  @Column('varchar', {
    name: 'role_name',
    nullable: true,
    comment: '角色名称',
    length: 50,
  })
  roleName: string | null;
  @Column('int', { name: 'sort', nullable: true, comment: '排序' })
  sort: number | null;
}
